package model

import "github.com/jinzhu/gorm"

type User struct {
	gorm.Model
	Collage		string `grom:"type:varchar(20);noy null"`
	//学院
	Major		string `grom:"type:varchar(20);noy null"`
	//专业
	Myclass		string `grom:"type:varchar(20);noy null"`
	//班级
	Name 		string `grom:"type:varchar(20);noy null"`
	//姓名
	StudentNu 	string `grom:"type:varchar(11);not null;unique"`
	//学号
	Password 	string `grom:"type:varchar(10);not null"`
	//密码
	Character	string `grom:"type:varchar(10);not null"`
}

type Introduction struct {
	gorm.Model
	Intrpductions string `grom:"type:varchar(20);"`
	//人格
	Name   string`grom:"type:varchar(10)"`
	//姓名
	StudentNu  string `grom:"type:varchar(11);not null;`
	//学号
}
